<?php

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');

Route::group('',function (){
    /**
     * Login    登录、注册、找回密码页的路由
     * ywh配置
     */
    Route::post('send', 'index/login/messageCode');
    Route::post('phoneRegister', 'index/login/phoneRegister');
    Route::post('passRegister', 'index/login/passRegister');
    Route::post('phoneLogin', 'index/login/phoneLogin');
    Route::post('passLogin', 'index/login/passLogin');
    Route::post('verifyPhoneCode', 'index/login/verifyPhoneCode');
    Route::post('passRetrieve', 'index/login/passRetrieve');

    /**
     * Personaudit  人事审核页的路由
     * ywh配置
     */
    Route::post('peUpState', 'index/personaudit/peUpState');

    /**
     * Throwfiles   用户投档页的路由
     */
    Route::post('getHotFiling', 'index/throwfiles/getHotFiling');

    /**
     * 图片验证码   个人页的路由
     * ywh配置
     */
    Route::get('outImg', 'index/Vcode/outImg');

    /**
     * SearchPage 搜索页
     * ljj
     */
    Route::post('searchOfficial','index/SearchPage/searchOfficial');
    Route::post('searchCompany','index/SearchPage/searchCompany');
    Route::post('getHotOfficial','index/SearchPage/hotOfficial');
    Route::post('getHotCompany','index/SearchPage/hotCompany');
    Route::post('getProvincial','index/SearchPage/areaBack');
    Route::post('getUrban','index/SearchPage/urbanBack');
    Route::post('getTown','index/SearchPage/townBack');
    Route::post('hotSearch','index/SearchPage/hotSearch');
    Route::post('hotCity','index/SearchPage/hotCity');

    /**
     * CompanyBack 公司页
     * ljj
     */
    Route::post('company','index/CompanyBack/companyBack');
    Route::post('userCompany','index/CompanyBack/userCompany');
    Route::post('companyPosition','index/CompanyBack/companyPosition');
    Route::post('HotOffType','index/CompanyBack/HotOffType');
    Route::post('HotCompanyArea','index/CompanyBack/HotCompanyAreaBack');
    Route::post('hotOfficial','index/CompanyBack/hotOfficial');

    /**
     * Home 首页
     * hyw
     */
    Route::post('disOff','index/Home/disOff');
    Route::post('hotJob','index/Home/hotJob');
    Route::post('hotCompany','index/Home/hotCompany');
    Route::post('choseJob','index/Home/choseJob');
})->middleware('NullToken');
Route::group('',function (){
    Route::post('getUserAttr', 'index/personal/getUserAttr');
    Route::post('editUserAttr', 'index/personal/editUserAttr');
    Route::post('editUserState', 'index/personal/editUserState');
    Route::post('editTemp', 'index/personal/editTemp');
    Route::post('editProject', 'index/personal/editProject');
    Route::post('editStudy', 'index/personal/editStudy');
    Route::post('editSSL', 'index/personal/editSSL');
    Route::post('getUserColl', 'index/personal/getUserColl');
    Route::post('editUserColl', 'index/personal/editUserColl');
    Route::post('verifyPhone', 'index/personal/verifyPhone');
    Route::post('securityPass', 'index/personal/securityPass');
    Route::post('modifyPhone', 'index/personal/modifyPhone');
    Route::post('judgeImgCode', 'index/personal/judgeImgCode');
    #   人事审核页
    Route::post('personnelAudit', 'index/personaudit/personnelAudit');
    #   用户投档页
    Route::post('getUserState', 'index/throwfiles/getUserState');
    Route::post('upUserState', 'index/throwfiles/upUserState');
    #   发布职位页
    Route::post('publicOff', 'index/PublicOff/publicOff');
    #注册公司页 ljj
    Route::post('registerCompany','index/RegisterCompany/companyRegister');
    Route::post('environImg','index/RegisterCompany/environImg');
    Route::post('coproduct','index/RegisterCompany/coproduct');
    #公司页 ljj
    Route::post('follow','index/CompanyBack/Follow');
    Route::post('unfollow','index/CompanyBack/UnFollow');
    Route::post('apply','index/CompanyBack/apply');
    #公司老板/人事 个人页 hyw
    Route::post('logo','index/Boss/logo');
    Route::post('companyInfr','index/Boss/companyInfr');
    Route::post('infrChange','index/Boss/infrChange');
    Route::post('companyProduct','index/Boss/companyProduct');
    Route::post('productChange','index/Boss/productChange');
    Route::post('postComImg','index/Boss/postComImg');
    Route::post('ComImg','index/Boss/ComImg');
    Route::post('welfare','index/Boss/welfare');
    Route::post('welfareChange','index/Boss/welfareChange');
    Route::post('matter','index/Boss/matter');
    Route::post('official','index/Boss/official');
    Route::post('change','index/Boss/change');
    Route::post('deLe','index/Boss/deLe');
    Route::post('headImg','index/Boss/headImg');
    Route::post('matterCheck','index/Boss/matterCheck');
    Route::post('matterOr','index/Boss/matterOr');
    Route::post('MatterIntr','index/Boss/MatterIntr');
    Route::post('employPosition','index/Boss/employPosition');
    Route::post('maPhone','index/Boss/maPhone');
    #Details 职位详情页 hyw
    Route::post('throwNow','index/Details/throwNow');
    Route::post('collection','index/Details/collection');
    Route::post('cancel','index/Details/cancel');
    Route::post('details','index/Details/details');

    #公司中心 公共样式 ljj
    Route::post('userCompany','index/CompanyBack/UserCompany');
    Route::post('userHeader','index/searchPage/userHeader');
})->middleware('CheckToken');
